package com.zyz.friend.controller.user;

import com.zyz.common.core.model.PageQueryDTO;
import com.zyz.common.core.model.TableDataInfo;
import com.zyz.friend.service.user.IUserMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/message")
public class UserMessageController {

    @Autowired
    private IUserMessageService userMessageService;

    @RequestMapping(value = "/list",method = RequestMethod.GET)
    public TableDataInfo list(PageQueryDTO pageQueryDTO) {
        return userMessageService.list(pageQueryDTO);
    }
}
